import request from "@/utils/request"

// // 库存周转天数目标配置 列表
// export function stockingConfigList(params) {
//   return request({
//     url: `/v1/base/stocking-config/list`,
//     method: "get",
//     params,
//   })
// }

// 库存结存 列表
export const inventoryBalanceList = (data) =>
  request({
    url: "/v1/sir/inventory-balance/list",
    method: "post",
    data,
  })
// 库存结存 导出
export const inventoryBalanceExport = (data) =>
  request({
    url: "/v1/sir/inventory-balance/export",
    method: "post",
    data,
  })
// 超长期存货汇总 列表
export const longTermInventoryList = (data) =>
  request({
    url: "/v1/sir/long-term-inventory/list",
    method: "post",
    data,
  })
// 超长期存货分析 列表
export const longTermInventoryAnalysis = (data) =>
  request({
    url: "/v1/sir/long-term-inventory/analysis",
    method: "post",
    data,
  })


// 存货周转汇总 列表
export const inventoryTurnoverSummary = (data) =>
  request({
    url: "/v1/sir/inventory-turnover/summary",
    method: "post",
    data,
  })

// 全流程存货分析 列表
export const fullProcessAnalysisList = (data) =>
  request({
    url: "/v1/sir/full-process-analysis/list",
    method: "post",
    data,
  })
// 全流程存货查询 列表
export const fullProcessAnalysisSearch = (data) =>
  request({
    url: "/v1/sir/full-process-analysis/search",
    method: "post",
    data,
  })



// 海外仓存货分布 列表
export const inventoryDistributeList = (data) =>
  request({
    url: "/v1/sir/inventory-distribute/list",
    method: "post",
    data,
  })

// 基础库存查询 列表
export const basicInventoryList = (data) =>
  request({
    url: "/v1/sir/basic-inventory/list",
    method: "post",
    data,
  })
// 差异单据列表 列表
export const basicInventoryDiffDocumentList = (data) =>
  request({
    url: "/v1/sir/basic-inventory/diff-document-list",
    method: "post",
    data,
  })
// 货主库存单据明细-pmc
export const ownerInventoryOrderDetail = (data) =>
  request({
    baseURL: window.APP_GETEWAY.wms,
    url: "/api/owner-inventory-order-detail",
    method: "post",
    data,
  })

// 存货计提 列表
export const inventoryProvisionList = (data) =>
  request({
    url: "/v1/sir/inventory-provision/list",
    method: "post",
    data,
  })


// 基础库存查询 创建差异单据
export const basicInventoryCreateDiffDocument = (data) =>
  request({
    url: "/v1/sir/basic-inventory/create-diff-document",
    method: "post",
    data,
  })

// PMC销量基础表
export const salesVolumeList = (data) =>
  request({
    url: "/v1/sales/sales-volume/list",
    method: "post",
    data,
  })